﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace mscook.core.domain
{
    public class Comment : Entity
    {


        //[Required(ErrorMessage = "回复所属资源必填")]
        public virtual string ResourceId
        {
            set;
            get;
        }

        //[Required(ErrorMessage = "回复内容必填")]
        public virtual string Content
        {
            set;
            get;
        }

        public virtual LoginUser FormLoginUser
        {
            set;
            get;
        }


        public virtual LoginUser ToLoginUser
        {
            set;
            get;
        }

        public virtual Comment ParentComment
        {
            set;
            get;
        }
    }
}
